import {httpInstance} from "@/api/index";
import {postConfig,getConfig} from '@/lib/RequestBuilder'


const role_prefix = "/sys_role";

export const listRole = (param) =>{
    let config = postConfig(role_prefix+"/list",param);
    return httpInstance.request(config)
}

export const listAllRole = () =>{
    let config = postConfig(role_prefix+"/listAll",);
    return httpInstance.request(config)
}

export const addRole = (param) =>{
    let config = postConfig(role_prefix+"/add",param);
    return httpInstance.request(config)
}

export const deleteRole = (param) =>{
    let config = postConfig(role_prefix+"/delete",param);
    return httpInstance.request(config)
}


export const updateRole = (param) =>{
    let config = postConfig(role_prefix+"/update",param);
    return httpInstance.request(config)
}


export const getRole = (param) =>{
    let config = getConfig(role_prefix+"/get",param);
    return httpInstance.request(config)
}




